<%@page contentType="text/html;charset=utf-8"%>
<%@ page import="java.util.*"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%	
    String path = request.getContextPath();
	String url = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+"/";
	String url1 = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+"/"+path;
%>

<link rel="stylesheet" href="<%=url1%>/themes/css/viewer/viewer.min.css?v=1.0">
<script src="<%=url1%>/js/viewer/viewer-jquery.min.js?v=1.0" type="text/javascript"></script>

<script type="text/javascript">
$(function() {
	var icount = "${fn:length(datalist)}";
	for(var i=1;i<=icount;i++){
		$("#usertregimglist"+i+"").viewer({url:'data-original'});
	}
});
</script>

<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="manage/user/getUserQueryList.do" method="post">
	<div class="searchBar">
		<table class="searchContent">
			<tr>
				<td>姓名：</td><td><input type="text" id="unameq" name="unameq" value="${param.unameq}" size="10"/></td>
				<td>手机号：</td><td><input type="text" id="uphoneq" name="uphoneq" value="${param.uphoneq}" size="12"/></td>
				<td>全科合格证号：</td><td><input type="text" id="ugeneralq" name="ugeneralq" value="${param.ugeneralq}" size="12"/></td>
				<td>身份证号：</td><td><input type="text" id="ucardidq" name="ucardidq" value="${param.ucardidq}" size="10"/></td>
				<td>申请日期：<input type="text" readonly id="uappdatebegq" name="uappdatebegq" value="${param.uappdatebegq}" class="date" size="10"/>&nbsp;至&nbsp;
		  			<input type="text" readonly id="uappdateendq" name="uappdateendq" value="${param.uappdateendq}" class="date" size="10"/></td>		  		
		  	</tr>	
	  	</table>
	  	<div class="subBar">
			<ul>
		  		<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
		  		<li><div class="buttonActive"><div class="buttonContent"><button type="button">清空</button></div></div></li>
			</ul>
	  	</div>
	</div>
	</form>
</div>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">		    
			<li><a class="icon" id="userexport" href="manage/user/getUserExport.do" target="dwzExport" targetType="navTab"><span>导出人员数据</span></a></li>
			<li class="line">line</li>
			<li><a class="icon" id="userdownload" href="manage/user/getUserDownload.do" target="dwzExport" targetType="navTab"><span>批量下载图片</span></a></li>
		</ul>
	</div>
	
	<table class="list" width="100%" layoutH="113">
		<thead>
			<tr>
		  		<th width="3.5%" align="center">序号</th>
			  	<th width="6%" align="center">姓名</th>
			  	<th width="7%" align="center">手机号</th>
			  	<th width="5%" align="center">身份证号码后六位</th>
			  	<th width="8%" align="center">全科合格证号</th>				 
			  	<th width="7%" align="center">目前所在单位</th>
			  	<th width="11%" align="center">是否拟申请加入</th>				  	
			  	<th width="5%" align="center">收件人姓名</th>	
			  	<th width="7%" align="center">收件人手机号码</th>	
			  	<th width="18%" align="center">收件人详细地址</th>	
			  	<th width="7%" align="center">IP</th>
			  	<th width="6.5%" align="center">申请时间</th>		  				
			  	<th width="5%" align="center">操作</th>				
			</tr>
		</thead>
		<tbody>
			<c:forEach var="item" items="${datalist}" varStatus="status">
	  			<tr>
					<td align="center">${status.index+1}</td>
					<td align="center">${item.self_name}</td>
					<td align="center">${item.self_phone}</td>
					<td align="center">${item.self_id_card}</td>
					<td align="center">${item.self_general}</td>					
					<td align="center">
						<c:if test="${item.self_unit=='1'}">会计师事务所</c:if>
						<c:if test="${item.self_unit=='2'}">非会计师事务所</c:if>
						<c:if test="${item.self_unit=='3'}">暂无工作单位</c:if>
					</td>
					<td align="center">
						<c:if test="${item.apply=='1'}">拟申请成为执业会员</c:if>
						<c:if test="${item.apply=='2'}">拟申请成为非执业会员</c:if>
						<c:if test="${item.apply=='3'}">暂不申请</c:if>
					</td>					
					<td align="center">${item.consignee_name}</td>
					<td align="center">${item.consignee_phone}</td>
					<td align="center">${item.consignee_address}</td>
					<td align="center">${item.d_ipadress}</td>
					<td align="center">${item.create_time}</td>
					<td align="center" >
						<c:set var="imglist" value="${item.img1}"/>
						<div id="usertregimglist${status.index+1}">
							<c:forEach var="img" items="${fn:split(imglist,',')}" varStatus="status1">							       			
		            			<c:if test="${not empty img}">
		            				<img class="view" data-original="<%=url%>${img}" title="图片浏览" src="<%=url%>${img}" width="20" height="20"/>
		            			</c:if>
		       				</c:forEach>	
						</div>									
					</td>
				</tr>
  			</c:forEach>
		</tbody>
	</table>	
	
	<div class="panelBar" >
		<div class="pages">
			<span>显示&nbsp;</span>
			<select name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				<option value="20" <c:if test="${numPerPage=='20'}">selected</c:if>>20</option>
				<option value="50" <c:if test="${numPerPage=='50'}">selected</c:if>>50</option>
				<option value="100" <c:if test="${numPerPage=='100'}">selected</c:if>>100</option>
				<option value="200" <c:if test="${numPerPage=='200'}">selected</c:if>>200</option>
			</select>
			<span>条，共${totalCount}条</span>
		</div>		
		<div class="pagination" targetType="navTab" totalCount="${totalCount}" numPerPage="${numPerPage}" pageNumShown="10" currentPage="${pageNum}"></div>
	</div>
</div>
<form id="pagerForm" method="post" action="manage/user/getUserQueryList.do">
	<input type="hidden" name="pageNum" value="${pageNum}" />
	<input type="hidden" name="numPerPage" value="${numPerPage}" />	
</form>
